<!-- pc -->
<template>
  <div id="pc">
    <ch-head v-show="!isHome" class="head"></ch-head>
    <div class="container">
      <router-view/>
    </div>
  </div>
</template>

<script>
import { Loading } from 'element-ui'
export default {
  name: 'pc',
  data() {
    return {
      scroll
    }
  },
  computed: {
    isHome() {
      return this.$route.path === '/home'
    }
  },
  methods: {
  },
  created() {
  },
  mounted() {
    let loadingInstance = Loading.service({ fullscreen: true })
    let loading = setInterval(() => {
      if (document.readyState === 'complete') {
        loadingInstance.close()
        window.clearInterval(loading)
      }
    }, 500)
  }
}
</script>
<style lang="scss" scoped>
@import "@a/scss/base.scss";
#pc {
  min-height: 100vh;
  min-width: 1400px;

  .head {
    position: sticky;
    top: 0;
  }
  .container{
    height: 100%;
  }
}
</style>
